module.exports = app => {
  const { controller, middleware, router } = app;

  router.get('获取订单列表', '/order/order/list', middleware.jwt(), controller.order.list);

  router.post('新增订单', '/order/order/insert', middleware.jwt(), controller.order.insert);

  router.post('取消订单', '/order/order/cancel', middleware.jwt(), controller.order.cancel);

  router.post('完成订单', '/order/order/finish', middleware.jwt(), controller.order.finish);

  router.get('改变地址', '/order/order/change', middleware.jwt(), controller.order.change);

  router.post('拒绝订单', '/order/order/refuse', middleware.jwt(), controller.order.refuse);

  router.post('删除订单', '/order/order/delete', middleware.jwt(), controller.order.delete);

};
